<template>
  <el-dialog title="添加保养标准" :visible.sync="$parent.openStand" width="70%">
    <!-- 类别管理 -->
    <!-- 条件查询 -->
    <searchBar @handleQuery="handleQuery"></searchBar>
    <!-- 操作 -->
    <!-- <operationBar @selectList="selectList"></operationBar> -->
    <!-- 表格 -->
    <operationTable @clearOpenStandard="Standard" ref="reftable"></operationTable>
  </el-dialog>
</template>

<script>
import operationTable from './operation-table/index.vue'
export default {
  components: {
    searchBar: () => import('./search-bar/index.vue'),
    // operationBar: () => import('./operation-bar/index.vue'),
    operationTable,
    // operationBar: ()=> import('./operation-bar/index.vue')
    // operationTable: ()=> import('./operation-table/index.vue')
  },
  data () {
    return {
      activeName: '1'
    };
  },
  created () {
  },
  methods: {
    /** 搜索按钮操作 */
    handleQuery (value) {
      this.$refs['reftable'].queryParams.pageNum = 1;
      this.$refs['reftable'].getList(value);
    },
    selectList () {//操作栏
      this.$refs['reftable'].getList();
    },
    Standard (val) {
      this.$emit('clearOpenStandard', val)
    }
  }
};
</script>
